package com.xxd.spring.boot.demo.lihonghai.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxd.spring.boot.demo.lihonghai.entity.Grade;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GradeService {
    int add(Grade grade);
    int update(Grade grade);
    void  deleteById1(@Param("id") Integer id);
    void  deleteById2(@Param("id") Integer id);
    IPage<Grade> listpage(Page page, Map<String,Object> params);
    List<Grade> list(Map<String,Object> params);
    Grade selectById(Integer id);
}
